$(function(){
	var form = document.forms[0];
	var phone = document.getElementById("usertelephone");
	$(":submit").click(function(){
		if(phone.validity.valueMissing){
			phone.setCustomValidity("手机号码不能为空");
		}else if(phone.validity.patternMismatch){
			phone.setCustomValidity("手机号码格式不正确");
		}else{
			phone.setCustomValidity("");
		}
	})
})





































